package net.pws.common.persistence;

import java.io.Serializable;

public class DeleteEntityByIdException extends UnitOfWorkException {
    
    private Class entityClazz;
    
    private Serializable id;
    
    public DeleteEntityByIdException(Class entityClazz,
                                     Serializable id,
                                     Throwable cause) {
        super(cause.getMessage(), cause);
        this.entityClazz = entityClazz;
        this.id = id;
    }
    
    public Class getEntityClazz() {
        return entityClazz;
    }
    
    public Serializable getId() {
        return id;
    }
    
}
